<?php
    $link = mysql_connect('mysql12.freehostia.com', 'davmor88_aleydei', 'Admin123');
    mysql_select_db('davmor88_aleydei');
    mysql_query("SET NAMES utf8");
    mysql_query("SET CHARACTER SET utf8");
    
    $code = $_POST['code'];
    $cantidad = $_POST['cantidad'];
    //$code = $_GET['code'];
    
    $qry = "Update invitados set confirm = $cantidad Where code = $code";
    mysql_query($qry);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

<link rel="stylesheet" href="../css/styles.css">

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script>
</script>
</head>
<body>
    <div class="hojas" style="height: 420px; width: 100%; repeat;" align="center">
        <div style="height: 95px;"></div>
        <span style="font-family: Arial; font-size: 16px; color: #999999;">
            <b>Muchas gracias!!!</b><br/>
            Nos vemos el 26 de Mayo :D
        </span><br />
        <span style="font-family: Arial; font-size: 10px; color: #CCCCCC;">
            Por favor lleva tu c&oacute;digo de invitado.
        </span><br />
    </div>
</body>
</html>